//普通职工
#pragma once
#include"worker.h"
using namespace std;

class Employee:public Worker
{
public:
    Employee(int id,string name,int dId);
    virtual void showInfo();
    virtual string getDeptName();
    ~Employee();
};

Employee::Employee(int id,string name,int dId)
{
    this->m_Id = id;
    this->m_Name = name;
    this->m_DeptId = dId;
}

void Employee::showInfo()
{
    cout << "职工编号：" << this->m_Id << "\t"
         << "职工姓名：" << this->m_Name << "\t"
         << "岗位：" << this->getDeptName() << "\t"
         << "岗位职责：完成经理交给的任务" << endl;
}

string Employee::getDeptName()
{
    return string("职工");
}

Employee::~Employee()
{

}
